import 'package:flutter/material.dart';

class Empty extends StatelessWidget {
  final double width;
  const Empty({super.key, this.width = 80});
  @override
  Widget build(BuildContext context) {
    return SizedBox(
      // 屏幕高度
      height: MediaQuery.of(context).size.height - 100,
      child: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            Icon(
              Icons.upcoming_outlined,
              size: width,
              color: Colors.grey[400],
            ),
            Text(
              '暂无数据',
              style: TextStyle(color: Colors.grey[400], fontSize: 15),
            )
          ],
        ),
      ),
    );
  }
}
